package com.buba.dao;

import com.buba.pojo.Dept;

import java.util.List;

public interface DeptMapper {
    int deleteByPrimaryKey(Integer id);
    int insert(Dept record);
    int insertSelective(Dept record);
    Dept selectByPrimaryKey(Integer id);
    int updateByPrimaryKeySelective(Dept record);
    int updateByPrimaryKey(Dept record);

    List<Dept> listDept(Integer parentid);

    Dept getDeptByDeptcode(String deptcode);

    Dept getDeptByDeptname(String deptname);
}